<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title><?php bloginfo('name'); ?> | <?php wp_title(); ?></title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="alternate icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/assets/i/favicon.png">
  <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/style.css"/>
  <script src="<?php echo get_template_directory_uri(); ?>/assets/js/zepto.min.js"></script>
  <script src="<?php echo get_template_directory_uri(); ?>/assets/js/amazeui.min.js"></script>
</head>
<body>
<header class="am-topbar">
  <div class="top1 am-hide-sm-only">
    <div class="am-container">
      <div class="am-g">
        <div class="col-md-7 left">
          <a><i class="am-icon-tty"></i>咨询电话 +18702924086</a>
          <a><i class="am-icon-envelope"></i>邮箱：827610973@qq.com</a>
          <a href="#"><i class="am-icon-pinterest-square"></i></a>
          <div class="am-dropdown" data-am-dropdown>
            <button class="am-btn am-dropdown-toggle"> <i class="am-icon-wechat"></i></button>
            <div class="am-dropdown-content">
              <h2>关注我们</h2>
              <p><img src="<?php echo get_template_directory_uri(); ?>/assets/img/qure.jpg"></p>
            </div>
          </div>
          <a href="#"><i class="am-icon-weibo"></i></a>
        </div>
        <div class="col-md-5 am-text-right right">
          <form action="" class="am-form am-form-inline">
            <div class="am-form-group am-form-icon">
              <input type="text" class="am-form-field" placeholder="搜索" name="s">
            </div>
            <button class="am-btn">
              <i class="am-icon-search"></i>
            </button>
          </form>
        </div>
      </div>
    </div>
  </div>

  <div class="am-container top2 am-hide-sm-only">
    <h1 class="am-topbar-brand">
      <a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png"></a>
    </h1>

    <div class="am-collapse am-topbar-collapse" id="collapse-head">


      <div class="am-topbar-right ">
        <ul class="am-nav am-nav-pills am-topbar-nav">
            <li class="<?php if ( is_home() ) : echo 'am-active'; endif;?>"><a href="<?php echo home_url(); ?>">首页</a></li>
            <li class="am-dropdown <?php if ( is_post_type_archive('products')) : echo 'am-active'; endif;?>" data-am-dropdown>
              <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                产品中心 <span class="am-icon-caret-down"></span>
              </a>
              <ul class="am-dropdown-content">
                 <?php foreach(get_product_category() as $cat): ?>
                  <li><a href="<?php echo site_url('?post_type=products'); ?>"><?php echo $cat->name; ?></a></li>
                <?php endforeach; ?>
              </ul>
            </li>
            <li class="<?php if ( is_post_type_archive('new')) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?post_type=new'); ?>">新闻中心</a></li>
            <li class="<?php if ( is_page(9) ) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?page_id=9'); ?>">招商加盟</a></li>
            <li class="<?php if ( is_page(11) ) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?page_id=11'); ?>">联系我们</a></li>
        </ul>
      </div>

    </div>
  </div> 
  <div class="s_nav am-show-sm-only">
    <div class="am-fl am-padding-left-sm"><a href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png" style="width:69px;"></a></div>
    <div class="am-dropdown am-fr" data-am-dropdown>
      <button class="am-btn am-btn-primary am-dropdown-toggle" data-am-dropdown-toggle><span class="am-icon-bars"></span></button>
      <ul class="am-dropdown-content">
          <li class="<?php if ( is_home() ) : echo 'am-active'; endif;?>"><a href="<?php echo home_url(); ?>">首页</a></li>
          <li class="<?php if ( is_post_type_archive('products')) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?post_type=products'); ?>">产品中心</a></li>
          <li class="<?php if ( is_post_type_archive('new')) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?post_type=new'); ?>">新闻中心</a></li>
          <li class="<?php if ( is_page(9) ) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?page_id=9'); ?>">招商加盟</a></li>
          <li class="<?php if ( is_page(11) ) : echo 'am-active'; endif;?>"><a href="<?php echo site_url('?page_id=11'); ?>">联系我们</a></li>
      </ul>

    </div>

  </div>


</header>